package com.pictureBook.merchant.service.impl;

import com.pictureBook.merchant.entity.StoreAdmin;
import com.pictureBook.merchant.mapper.StoreAdminMapper;
import com.pictureBook.merchant.service.IStoreAdminService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * <p>
 * 后台管理员表 服务实现类
 * </p>
 *
 * @author Ding
 * @since 2022-01-06
 */
@Service
public class StoreAdminServiceImpl extends ServiceImpl<StoreAdminMapper, StoreAdmin> implements IStoreAdminService {

    @Resource
    private StoreAdminMapper storeAdminMapper;

    @Override
    public Map<String,Object> login(String username, String password) {
        return storeAdminMapper.login(username,password);
    }

    @Override
    public Map<String, Object> getUserInfoById(Integer uId) {
        return storeAdminMapper.getUserInfoById(uId);
    }

    @Override
    public Map<String, Object> getUserById(Integer uId) {
        return storeAdminMapper.getUserById(uId);
    }
}
